#ifndef _FILESTREAM_H_
#define _FILESTREAM_H_

#include <fstream>

class FileClass 
{
public:
	FileClass();
	~FileClass();

	int OpenForWrite(const char *_fname);
	int OpenForRead(const char *_fname);
	void Close();

	void WriteChar(char _data);
	void WriteInt(int _data);
	void WriteStruct(void *_data, int _size);
	void WriteString(const char *_data);

	char ReadChar();
	int  ReadInt();
	void ReadStruct(void *_data, int _size);
	void ReadString(char *_data);
	
private:
	std::fstream m_File;

};

#endif
